package com.itheima.sc.service.cms;

import com.itheima.sc.api.cms.PrefrenceAreaApi;
import com.itheima.sc.pojo.cms.PrefrenceArea;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrefrenceAreaService {

    @DubboReference
    private PrefrenceAreaApi areaApi;

    //获取所有商品优选
    public List<PrefrenceArea> listAll() {
    return areaApi.listAll();
    }
}
